// 引入 request 文件
import request from '@/utils/request'
import type { ProjectListParams } from "./types"

// 分页查询列表
export const projectList = (params?: ProjectListParams) => {
	return request({
		url: '/point/project/list',
		method: 'get',
		data: params || {}
	})
}

//单条数据详情
export const projectItem = (params : string) => {
	return request({
		url: `/point/project/${params}`,
		method: 'get'
	})
}

//删除
export const deleteProjectItem = (projectId: string) => {
	return request({
		url: `/point/project/${projectId}`,
		method: 'delete'
	})
}